package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SBattlefieldPlayerScores extends Object implements IMessageBase
    {
        public var campScore:SBattlefieldScore;
        public var scoreCamp1:Array;
        public var scoreCamp2:Array;
        public var scoreCamp3:Array;
        public const _type:int = 96;
        public static var _regist:SBattlefieldPlayerScores = new SBattlefieldPlayerScores(true);

        public function SBattlefieldPlayerScores(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SBattlefieldPlayerScores();
        }

        public function __write(param1:SerializeStream) : void
        {
            this.campScore.__write(param1);
            SeqPlayerScoreHelper.write(param1, this.scoreCamp1);
            SeqPlayerScoreHelper.write(param1, this.scoreCamp2);
            SeqPlayerScoreHelper.write(param1, this.scoreCamp3);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.campScore = new SBattlefieldScore();
            this.campScore.__read(param1);
            this.scoreCamp1 = SeqPlayerScoreHelper.read(param1);
            this.scoreCamp2 = SeqPlayerScoreHelper.read(param1);
            this.scoreCamp3 = SeqPlayerScoreHelper.read(param1);
            
        }

    }
}
